package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    //新增地址
    void insertAddress(AddressBook addressBook);

    //查询用户所有地址
    List<AddressBook> allAddress();

    //查询用户默认地址
    AddressBook defaultAddress();

    //修改地址
    void updateAddress(AddressBook addressBook);

    //根据id删除地址
    void deleteAddress(Long id);

    //根据id查询地址
    AddressBook addressById(Long id);

    //设置默认地址
    void setDefaultAddress(AddressBook addressBook);
}
